//
//  RootViewController.m
//  Diary
//
//  Created by lanou3g on 15/12/21.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "RootViewController.h"
#import "DiaryViewController.h"
#import "MoodViewController.h"
#import "PhotoViewController.h"
#import "XZMPublishViewController.h"
#import "PasswordPhotoViewController.h"
@interface RootViewController ()<UIScrollViewDelegate>


@end

@implementation RootViewController



- (void)viewDidLoad {
    [super viewDidLoad];
   
    
    
    
        DiaryViewController *diaryVC = [[DiaryViewController alloc] init];
        diaryVC.title = @"日记";
        diaryVC.tabBarItem.image = [UIImage imageNamed:@"日记.png"];
        UINavigationController *diaryNC = [[UINavigationController alloc] initWithRootViewController:diaryVC];
        //    [diaryNC.navigationBar setBackgroundImage:[UIImage imageNamed:@"背景.png"] forBarMetrics:UIBarMetricsDefault];
    
    
       PasswordPhotoViewController *phtoVC = [[PasswordPhotoViewController alloc] init];
       phtoVC.title = @"照片";
       phtoVC.tabBarItem.image = [UIImage imageNamed:@"相册.png"];
       UINavigationController *phtoNC = [[UINavigationController alloc] initWithRootViewController:phtoVC];
    
    
        XZMPublishViewController *XZMPublishVC = [[XZMPublishViewController alloc] init];
        XZMPublishVC.title = @"心情";
        XZMPublishVC.tabBarItem.image = [UIImage imageNamed:@"心.png"];
        UINavigationController *XZMPublishNC = [[UINavigationController alloc] initWithRootViewController:XZMPublishVC];
        //    [moodNC.navigationBar setBackgroundImage:[UIImage imageNamed:@"背景.png"] forBarMetrics:UIBarMetricsDefault];
    
        self.viewControllers = [NSArray arrayWithObjects:diaryNC,phtoNC,XZMPublishNC, nil];
        self.tabBar.tintColor = [UIColor blackColor];
        self.tabBar.backgroundColor = [UIColor greenColor];

    
   
}



@end
